#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    a.setApplicationName("QCarPC");
    QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
    if(argc>1 && QString::fromAscii(argv[1])=="-debug"){}
    else {
        //"Disable" mouse cursor
        QPixmap pix(32, 32);
        pix.fill(Qt::transparent);
        a.setOverrideCursor(QCursor(pix));
    }
    MainWindow w;
    w.show();
    return a.exec();
}
